package com.project.bean;

import java.time.LocalDate;

/**
 * 学生实体类
 */
public class StuBean {
    /**
     * 学生编号
     */
    private Integer stuId;

    /**
     * 学生姓名
     */
    private String stuName;

    /**
     * 学生性别
     */
    private String stuGender;

    /**
     * 学生电话
     */
    private String stuPhone;

    /**
     * 学生头像
     */
    private String stuPic = "默认头像";

    /**
     * 学生入住时间
     */
    private LocalDate stuInDate = LocalDate.now();

    /**
     * 班级对象
     */
    private ClassBean cls;

    /**
     * 房间对象
     */
    private RoomBean room;

    public StuBean() {
    }

    public StuBean(Integer stuId, String stuName, String stuGender, ClassBean cls, RoomBean room, String stuPhone, String stuPic) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.stuGender = stuGender;
        this.cls = cls;
        this.room = room;
        this.stuPhone = stuPhone;
        this.stuPic = stuPic;

    }

    public StuBean(String stuName, String stuGender, String stuPhone, Integer classId, Integer roomId) {
        this.stuName = stuName;
        this.stuGender = stuGender;
        this.stuPhone = stuPhone;
        this.cls = new ClassBean();
        this.cls.setClassId(classId);
        this.room = new RoomBean();
        this.room.setRoomId(roomId);
    }

    public Integer getStuId() {
        return stuId;
    }

    public void setStuId(Integer stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuGender() {
        return stuGender;
    }

    public void setStuGender(String stuGender) {
        this.stuGender = stuGender;
    }

    public String getStuPhone() {
        return stuPhone;
    }

    public void setStuPhone(String stuPhone) {
        this.stuPhone = stuPhone;
    }

    public String getStuPic() {
        return stuPic;
    }

    public void setStuPic(String stuPic) {
        this.stuPic = stuPic;
    }

    public LocalDate getStuInDate() {
        return stuInDate;
    }

    public void setStuInDate(LocalDate stuInDate) {
        this.stuInDate = stuInDate;
    }

    public ClassBean getCls() {
        return cls;
    }

    public void setCls(ClassBean cls) {
        this.cls = cls;
    }

    public RoomBean getRoom() {
        return room;
    }

    public void setRoom(RoomBean room) {
        this.room = room;
    }

    @Override
    public String toString() {
        return "StuBean{" +
                "stuId=" + stuId +
                ", stuName='" + stuName + '\'' +
                ", stuGender='" + stuGender + '\'' +
                ", stuPhone='" + stuPhone + '\'' +
                ", stuPic='" + stuPic + '\'' +
                ", stuInDate=" + stuInDate +
                ", cls=" + cls +
                ", room=" + room +
                '}' + "\n";
    }
}
